package com.tansun.easycare.rule.scoremodel.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import com.tansun.easycare.rule.common.model.BomField;
import com.tansun.easycare.rule.scoremodel.entity.RuleScore;
import com.tansun.easycare.rule.scoremodel.entity.RuleScoreInfo;

/**
 * 评分卡规则信息
 *
 * @author Lph
 */
public class ScoreItem extends RuleScore implements Serializable {

    /**
     * 规则参数列表
     */
    private List<RuleScoreInfo> list = new ArrayList<RuleScoreInfo>();

    public List<RuleScoreInfo> getList() {
        return list;
    }

    public void setList(List<RuleScoreInfo> list) {
        this.list = list;
    }

    public void initModel(BomField param) {
        this.setClassName(param.getClassName());
        this.setNamecn(param.getLabel());
        this.setNameen(param.getName());
        this.setDomain(param.getDomain());
        this.setDataType(param.getDataType());
    }
}
